package com.mms.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.mms.dao.IMedicalOfficeDao;
import com.mms.pojo.MedicalOffice;
import com.mms.service.IMedicalOfficeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 陈林鹏
 * @since 2021-04-14
 */
@Service
public class MedicalOfficeServiceImpl extends ServiceImpl<IMedicalOfficeDao, MedicalOffice> implements IMedicalOfficeService {

    @Autowired
    IMedicalOfficeDao medicalOfficeDao;

    /**
     * 获取所有的Id 和 名称
     *
     * @return
     */
    public List<Map<String, Object>> getAllIdName() {
        return medicalOfficeDao.getAllIdName();
    }

}
